package com.ls.lserp.modules.setting.dao;

import java.util.Collection;
import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.common.entity.UploadFile;
import com.ls.lserp.modules.setting.entity.Process;
import com.ls.lserp.modules.sys.entity.Dict;

@MyBatisDao
public interface ProcessDao extends CrudDao<Process>{
	/**
	  * @Title: findListProcess
	  * @Description: 查询子项目接口
	  * @param @param process
	  * @param @return
	  * @return List<Process> 
	  * @throws
	  */
	public List<Process> findListProcess(Process process);


	
	/**
	 * 插入所有子项
	 * @param dict
	 * @return
	 */
	public int insertAllAdd(Process process);
	
	/**
	 * 修改文件
	 * @param dict
	 * @return
	 */
	public int updateFile(UploadFile uf);
	
	/**
	 * 获取文件ID
	 * @param dict
	 * @return
	 */
	public Long getFileID(Long craftId);
				
	
	

	/**
     * @Title: findBrandList
     * @Description: 查询品牌
     * @param @param process
     * @param @return
     * @return List<Material> 
     * @throws
     */
	public List<Process> findBrandList(Process paramIr);



	 /**
     * @Title: searchFileId
     * @Description: 查询图片Id
     * @param @param material
     * @param @return
     * @return List<Material> 
     * @throws
     */  
   public List<UploadFile> searchFileId(UploadFile  uploadFile);

   /**
	  * @Title: saveUploadFile
	  * @Description: 上传图片
	  * @param @param material
	  * @param @return
	  * @return int 
	  * @throws
	  */	
	public int saveUploadFile(UploadFile  uploadFile);

	/**
	 * @Title: insertCraftFile
	 * @Description: 图片工艺关联
	 * @param fileId
	 * @param id
	 */
	void insertCraftFile(long id,long fileId);

	public int addUploadFile(UploadFile  uploadFile);




}
